package com.daniel.mi.enumutil;

import lombok.Getter;

/**
 * @Author zengneng46764
 * @Date 2024/3/4 11:27
 * @Since 1.0.0.0
 * @description:统一返回结果状态信息类
 */



@Getter
public enum EnumResultCode {

    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(2012, "服务异常"),
    SYS_ERROR(500,"系统异常"),
    DATA_ERROR(204, "数据异常"),
    ILLEGAL_REQUEST(205, "非法请求"),
    REPEAT_SUBMIT(206, "重复提交"),
    ARGUMENT_VALID_ERROR(210, "参数校验异常"),

    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限"),
    ACCOUNT_ERROR(214, "账号不正确"),
    ACCOUNT_EXIST(215,"账号已存在"),
    PASSWORD_ERROR(216, "密码不正确"),
    LOGIN_MOBLE_ERROR( 217, "账号或密码不正确"),
    ACCOUNT_STOP( 218, "账号已停用"),
    NODE_ERROR( 219, "该节点下有子节点，不可以删除")
    ;

    public Integer code;

    public String message;

    EnumResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}